package war;

import java.util.Random;

public class Main {
	public static void main(String[] args) {
		IAction[] units=new IAction[10];
		Random rand=new Random();
		
		for(int i=0;i<10;i++)
		{
			int q = rand.nextInt(3);
			if(q==0)
			{
				units[i]=new Luchnik();
			}
			if(q==1)
			{
				units[i]=new Morpeh();
			}
			if(q==2)
			{
				units[i]=new Tank();
			}
		}
		
		for(IAction a: units)
		{
			a.fire();
		}
	}
}
